/**
 * @author jianshan@byai.com
 * @date 2021/3/5 2:20 PM
 * describe:
 */
public class DistinguishCardNumber {



    public static void main(String[] args) {
        String number = "332502199306255612";
        System.out.println(distinguishCardNumber(number));
    }

    private static String distinguishCardNumber(String number){
        String text = number;
        if (text == null || text.trim().length() <= 0 ) {
            return null;
        }
        if (text.trim().length() == 16) {
            return "信用卡卡号";
        }
        if (text.trim().length() == 15 || text.trim().length() == 18) {
            return "信用卡核身证件号";
        }
        return null;
    }
}